﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_BillTemplate")]
    public class LKBillTemplate
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }


        private int _billType;
        /// <summary>
        /// 单据类型(1:零仓;2:包仓)
        /// </summary>
        [Column("BillType")]
        public int BillType
        {
            get
            {
                return _billType;
            }
            set { _billType = value; }
        }


        private string _templateContent;
        /// <summary>
        /// 模板内容
        /// </summary>
        [Column("TemplateContent")]
        public string TemplateContent
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_templateContent))
                    _templateContent = string.Empty;
                return _templateContent;
            }
            set { _templateContent = value; }
        }


        private bool _isDeleted;
        /// <summary>
        /// 是否删除(0:未删除,1:删除)
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }


        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }


        private int _createUserId;
        /// <summary>
        /// 创建人id
        /// </summary>
        [Column("CreateUserId")]
        public int CreateUserId
        {
            get
            {
                return _createUserId;
            }
            set { _createUserId = value; }
        }


        private string _createUser;
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("CreateUser")]
        public string CreateUser
        {
            get
            {
                if (string.IsNullOrWhiteSpace(_createUser))
                    _createUser = string.Empty;
                return _createUser;
            }
            set { _createUser = value; }
        }


    }
}

